//
//  BaseProvideView.m
//  SafeFoodManagerDemo
//
//  Created by bob on 2017/10/24.
//  Copyright © 2017年 bob. All rights reserved.
//

#import "BaseProvideView.h"

@interface BaseProvideView()

@property(nonatomic,strong)UIButton *ResetBtn;

@property(nonatomic,strong)UIButton *FinshBtn;

@end

@implementation BaseProvideView

-(instancetype)initWithFrame:(CGRect)frame
{
    if (self=[super initWithFrame:frame]) {
        
        self.ResetBtn=[UIButton buttonWithType:UIButtonTypeCustom];
        
        self.FinshBtn=[UIButton buttonWithType:UIButtonTypeCustom];
        
        self.ResetBtn.frame=CGRectMake(0, 0, SCREEN_WIDTH*2/5.0, 44*SCREEN_WIDTH/320.0);
        
        self.FinshBtn.frame=CGRectMake(SCREEN_WIDTH*2/5.0, 0, SCREEN_WIDTH*3/5.0, 44*SCREEN_WIDTH/320.0);
        
        [self.ResetBtn setTitle:@"重置" forState:UIControlStateNormal];
        
        [self.FinshBtn setTitle:@"完成" forState:UIControlStateNormal];
        
        [self.ResetBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
        
        [self.FinshBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
        
        self.ResetBtn.titleLabel.font=[UIFont systemFontOfSize:19];
        
        self.FinshBtn.titleLabel.font=[UIFont systemFontOfSize:19];
        
        self.ResetBtn.backgroundColor=TBColorProvideBtnbg;
        
        self.FinshBtn.backgroundColor=TBColorFinshBtnbg;
        
        [self.ResetBtn addTarget:self action:@selector(ResetAction) forControlEvents:UIControlEventTouchUpInside];
        
        [self.FinshBtn addTarget:self action:@selector(FinshAction) forControlEvents:UIControlEventTouchUpInside];
        
        [self addSubview:self.ResetBtn];
        
        [self addSubview:self.FinshBtn];
        
    }
    
    return self;
}


-(void)ResetAction
{
    
    
    
}

-(void)FinshAction
{
    
    
    
}


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
